<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class GoodsSeckill extends Model
{
    use HasFactory;
    protected $table = 'goods_seckill';

    public function goods()
    {
        return $this->hasMany(StoreGoods::class,'id','goods_id');
    }

    public function config()
    {
        return $this->hasMany(GoodsSeckillConfig::class,'id','config_id');
    }
}
